package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    OrderSetting findOrderSettingByOrderDate(Date orderDate);

    int updateReservations(@Param("id") Integer id,
                           @Param("reservations") int reservations,
                           @Param("oldReservations") int oldReservations);

    void updateReservationsByDate(@Param("date") Date date,@Param("number") int number);
}
